home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-03-15 | 3.6 KB | 100 lines | [TEXT/R*ch] |
- ATADemo - Macintosh ATA Manager Sample
-
- Version: 1.3
-
- Apple Macintosh Developer Technical Support
- Written by: Vinne Moscaritolo
-
- Copyright Apple Computer, Inc
-
- You may incorporate this sample code into your applications
- without restriction, though the sample code has been provided "AS
- IS" and the responsibility for its operation is 100% yours.
- However, what you are not permitted to do is to redistribute the
- source as "DTS Sample Code" after having made changes. If you're
- going to re-distribute the source, we require that you make it
- clear in the source that the code was descended from Apple Sample
- Code, but that you've made changes.
-
- ATADemo is a CodeWarrior C sample that will call the ATA
- Manager and scan the ATA bus and list the various device
- configuration data.
-
- This sample has been updated to properly work with the .AppleCD
- driver installed. On my Poorbook G3 this sample produced the following
- results:
-
- ------------------------------------------------------------------
-
- Macintosh ATA Manager Sample
-
- ATA Manager inquiry:
- ATA Manager Version: 4.3.1 (hex 04318000)
- Busses: 2
- Devices: 2
- PIO Modes: 0
- DMA Modes: 0
- Multi DMA Modes:0
- -----------------------------------------
-
- Found .AppleCD driver, preparing to disable it
- - Disable the CD Driver
- -- Wake up the CD Driver
- -- Set the CD Driver Quiescence mode to On
-
- Device 1 .AppleCD
- Configuration: (ATAPI, Media Bay)
- Configuration word 34176
- Cylinders 0
- Heads 0
- Bytes/Track 0
- Bytes/Sector (0 = 512 bytes) 0
- Sectors/Track 0
- Vendor Unique (word 7..9) 0000 0000 0000
- Serial Number ""
- Buffer Type 0000
- Buffer size in 512 byte increments 0
- Number of ECC bytes available 0
- Firmware Revision "A011"
- Model Number "MATSHITA CR-174"
- Capability Flags (word 47..53) 0002 0512 0512 0000 3840 0000 0000
- Cylinders (current mode) 0
- Heads (current mode) 0
- Sectors/Track (current mode) 0
- Current Capacity in Sectors 0
- Multiple Sector Capability Flag 0000
- Current User-addressable Sectors 0
- Single Word DMA Transfer Mode Flags 0007
- Multiword DMT Transfer Mode Flags 1031
- -----------------------------------------
-
- Device 0 .ATADisk
- Configuration: (ATA, Internal)
- Configuration word 1114
- Cylinders 10592
- Heads 15
- Bytes/Track 0
- Bytes/Sector (0 = 512 bytes) 0
- Sectors/Track 0
- Vendor Unique (word 7..9) 0000 0000 0000
- Serial Number "D34D3163589"
- Buffer Type 0003
- Buffer size in 512 byte increments 936
- Number of ECC bytes available 4
- Firmware Revision "PL8AAA3A"
- Model Number "IBM-DPLA-25120"
- Capability Flags (word 47..53) 0007 0512 0512 0000 3840 0000 0016
- Cylinders (current mode) 10592
- Heads (current mode) 15
- Sectors/Track (current mode) 63
- Current Capacity in Sectors 10009440
- Multiple Sector Capability Flag 0264
- Current User-addressable Sectors 10009440
- Single Word DMA Transfer Mode Flags 0007
- Multiword DMT Transfer Mode Flags 1031
- -----------------------------------------
-
- Re-enabling the .AppleCD driver
- - Enable the CD Driver
- -- Set the CD Driver Quiescence mode to Off
-